<!doctype html>
<html>
<head>
<title>WO的外快</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta content="telephone=no" name="format-detection" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta id="viewport" name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0,user-scalable=no,target-densitydpi=260">
<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" type="text/css" href="home.css" />
<link rel="stylesheet" type="text/css" href="common.css">
<script src="js/jquery-1.8.0.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/jquery.alert.js"></script>
<script src="js/iScroll4.2.5-min.js"></script>
<script src="js/base64.js"></script>
<link type="text/css" href="css/jquery.alert.css" rel="stylesheet"/>
<script src="js/jquery.getparm.js"></script>
<script src="js/index.js"></script>
<script src="js/scrollPic.min.js"></script>
<script type="text/javascript" src="js/common.js?version=0310"></script>
<script type="text/javascript">
//var jsonserver="http://192.168.6.52:8090/";
//var temp_server="http://192.168.10.57:8080/nature/";

var fid=$.cookie("NP_INFO_ID");
var ukey=$.cookie("U_KEY");
var usernum=$.cookie("NP_INFO_TELNO");
var requestParam=$.getUrlParam("rp");
var newFlag=$.cookie("newuser");
var showDivFlag=$.cookie(fid);
var restWidth=150;//向左或者向右滑动之后预留的宽度
var imgScroll;
var liLeft;

var sWindth;

function loaded(){

	liLeft=$("#banner1").offset().left-10;
	//alert(liWindth);
	
	imgScroll=new iScroll("wrapper",{
			snap:"li",
			x:-liLeft,
			hScrollbar:false
		});
}
addEventListener("orientationchange", function() {
	 setTimeout(hideURLbar, 0); 
	// resize(); 
	 
}, false);
document.addEventListener('DOMContentLoaded', loaded, false);
$(document).ready(function(e) {
	liWindth=$("#wrapper li").width();
	setInterval(function(){
		if(liWindth>0){
			imgScroll.scrollTo(liWindth,0,500,true);
			liWindth=-liWindth;
		}else{
			imgScroll.scrollTo(liWindth,0,500,true);
			liWindth=$("#wrapper li").width();
		}

	},3000);
	if(versionFlag=="bj"){
		$("#u48").hide();
		$("#title_").text("WO的外快");
	}else{
		$("#u48").show();
		$("#title_").text("星火平台");
	}
	readImg();
	
	//setTimeout(function(){initScrollPic();},500);
  	
	initU48();
	//初始化消息数目
	initMsg();
	//初始化页面中间内容
	initMyCommission();
	
	if(newFlag=="isNull"){
		firstLoginInitData();
		if(localStorage.getItem(fid)==null && showDivFlag!="1"){
			$(".floatBoxBg").show();
			$(".middle1").show();
		}
	}else{
		initContent();
	}
	//firstLoginInitData();
	$("#usernum").text(usernum);

	$(".msgTd").click(function(){
		//获取窗口宽度
		window.location.href="message.html";
	});
	
	$("#repassword").blur(function () { 
		var password2 = $("#password").val();
		if(this.value==password2){

		}else{
			
			jConfirm("两次密码输入不一致",'验证',function(e){});
			}

		});
			
	$("input").focus(function(){
		
		if(this.value=="请输入找回密码的邮箱"||this.value=="请再次输入新密码" || this.value=="请输入新密码"){
			this.value="";
		}
		
		
	});
	$("input").blur(function(){
		if(this.value=="" || this.value.length==0 || this.value==null){
			jConfirm("输入不能为空",'验证',function(e){});
		}
	});
	$(window).resize(function(){
		window.location.href="index.html";
		
	});
});



function hideDiv(){
	$(".floatBoxBg").hide();
	$(".middle1").hide();
	$.cookie(fid,'1');
}

</script>
</head>

<body onresize="resize()">
<div class="floatBoxBg" style="display:none;"></div>
<div class="middle1" style=" display:none; position:absolute; z-index:999; width:90%; margin-left:5%; margin-top:150px;">
  <div class="border1" >
    <div style="color: #565656;font-size: 22px;">
      <select id="u48" style="height: 40px;border-radius: 4px; width:40%;border:1px solid #EFEFEF;padding-top: 5px;">
      </select>
    </div>
    <div style="margin-top: 10px;color: #EF4E16;font-size: 20px;"> 此密码与返佣账户密码一致！ </div>
    <div style="margin-top: 10px;color: #565656;font-size: 22px;"> 设置登录密码 </div>
    <div style="margin-top: 10px;color: #565656;font-size: 22px;">
      <input id="password" type="text" value="请输入新密码" maxlength="6"/>
    </div>
    <div style="margin-top: 10px;color: #565656;font-size: 22px;">
      <input id="repassword" type="text" value="请再次输入新密码" maxlength="6"/>
    </div>
    <div style="margin-top: 10px;color: #565656;font-size: 22px;">
      <input id="email" type="email" value="请输入找回密码的邮箱" />
    </div>
    <div class="okbtn" onClick="okBtnClick();"></div>
    <div class="xiaci" onclick="hideDiv();"></div>
    <div style="height: 20px;"></div>
  </div>
</div>
<div style="position:absolute; left:90%; top:0px; z-index:99; text-align:center; line-height:40px; font-size: 28px;color:#fff; height:48px; width:66px;" id="msgCount"> </div>
<div id="header" style="text-align:center;" class="header">
  <table class="headerTal">
    <tr>
      <td class="menuTd"  >菜单</td>
      <td id="title_" style="font-size:32px; color:#fff;"></td>
      <td class="msgTd" width="20%">消息</td>
    </tr>
  </table>
</div>
<!-- 中间主页面 -->
<div id="content" style="width:100%">
  <div style="background:url(images/index/index_detailBg.png); height:70%; text-align:center">
   <div id="wrapper">
        <div id="scroller" style="width:220%; margin:0px auto; text-align:center;">
        <ul>
        	<li style="width:50%; float:left;"><img width="91%" src="images/index/banner.png" onClick="window.location.href='huodongxiangqing.html'" height="88" id="banner1"/></li>
        	<li style="width:50%; float:left;"><img width="91%" src="images/index/banner.png" onClick="window.location.href='huodongxiangqing.html'" height="88" id="banner2"/></li>
        </ul>
        </div>
     </div>
    <div id="moneyDetail" style="width:98%; margin:-2px auto; border-radius:8px; background:#fff; clear:both;">
      <table  width="100%" cellpadding="0">
        <tr height="92px">
          <td width="30%" rowspan="2" align="center"><img src="images/index/index_money.png"/>
            <div style=" border:1px #cccccc solid; border-radius:4px; height:45px; line-height:45px; margin-top:5px; width:55%;"  ><span id="curMonth">0</span> </div></td>
          <td rowspan="2" width="8" align="left"><img src="images/index/lian.png" width="8" height="162"></td>
          <td width="65%"><span id="showMoney">0</span><span id="showMoneyUnit">元佣金</span></td>
        </tr>
        <tr style="font-size:48px; height:60px;" >
          <td><div class="org_box"> <span class="org_box_cor cor3"></span><span id="moneyDesc"></span></div></td>
        </tr>
      </table>
    </div>
    <div class="timeLine"> </div>
  </div>
</div
  >
</div>
</div>
</body>
</html>
